//
//  HomeViewModel.h
//  AppointmentForCar
//
//  Created by TheMacBook on 2016/11/7.
//  Copyright © 2016年 Herron. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomeHistoryModel.h"
#import "DriverModel.h"

@interface HomeViewModel : NSObject

@property (nonatomic, strong) NSArray <HomeHistoryModel *> *dataArray;
@property (nonatomic, strong) DriverModel *driver;

/**
 *  获取历史订单信息
 */
- (HomeViewModel * (^)(void))getDriverHistoricalRecordWithId:(NSString *)DriverId complete:(CompleteBackCallBlock)complete;

/**
 *  获取用户信息
 */
- (HomeViewModel * (^)(void))getDriverBriefInformationWithId:(NSString *)driverid complete:(CompleteBackCallBlock)complete;
/**
 *  抢单
 */
- (HomeViewModel * (^)(void))grabOrderWithReservationId:(NSString *)reservationId complete:(CompleteBackCallBlock)complete;

/**
 *  出车
 */
- (HomeViewModel * (^)(void))driverOutCarWithdriverIdWithcomplete:(CompleteBackCallBlock)complete;

/**
 *  收车
 */
- (HomeViewModel * (^)(void))driverBackCarWithdriverIdWithcomplete:(CompleteBackCallBlock)complete;

/**
 *  抢单
 */
- (HomeViewModel * (^)(void))robOrderWithReservationId:(NSString *)reservationId complete:(CompleteBackCallBlock)complete;


@end
